package com.ruiboyun.liveapp.base;

import android.app.Application;
import android.content.Context;

import com.duanqu.qupai.jni.ApplicationGlue;
import com.mob.MobSDK;

/**
 * Created by wushiqian on 2017/9/10.
 */

public class App extends Application {
    private static App instance;

    @Override
    public void onCreate() {
        super.onCreate();
        instance=this;
        MobSDK.init(getApplicationContext());
        System.loadLibrary("gnustl_shared");
//        System.loadLibrary("ijkffmpeg");//目前使用微博的ijkffmpeg会出现1K再换wifi不重连的情况
        System.loadLibrary("qupai-media-thirdparty");
//        System.loadLibrary("alivc-media-jni");
        System.loadLibrary("qupai-media-jni");
        ApplicationGlue.initialize(this);
    }

    public static Context getInstance() {
        return instance;
    }
}
